package cn.yuanqiao.archive.api.domain;

import cn.yuanqiao.common.annotation.Excel;
import cn.yuanqiao.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;


/**
 * 接收记录对象 YQ_RECEIVE_RECORD
 *
 * @author xy
 * @date 2025-01-17
 */
public class ReceiveRecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    @Excel(name = "ID")
    private Long id;

    /** 原文件名称 */
    @Excel(name = "原文件名称")
    private String name;

    /** 包路径 */
    @Excel(name = "包路径")
    private String path;

    /** 四性检测标识 */
    @Excel(name = "四性检测标识")
    private String code;

    /** 租户编码 */
    @Excel(name = "租户编码")
    private String tenantCode;

    /** 检测时间 */
    @Excel(name = "检测时间")
    private Date detectionTime;

    /** 检测结果0:不通过1：通过 */
    @Excel(name = "检测结果0:不通过1：通过")
    private String result;

    /** 0:未解析1:已解析2:解析失败 */
    @Excel(name = "0:未解析1:已解析2:解析失败")
    private String state;

    /** 四性id */
    @Excel(name = "四性id")
    private Long sxId;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setName(String name)
    {
        this.name = name;
    }

    public String getName()
    {
        return name;
    }
    public void setPath(String path)
    {
        this.path = path;
    }

    public String getPath()
    {
        return path;
    }
    public void setCode(String code)
    {
        this.code = code;
    }

    public String getCode()
    {
        return code;
    }
    public void setTenantCode(String tenantCode)
    {
        this.tenantCode = tenantCode;
    }

    public String getTenantCode()
    {
        return tenantCode;
    }
    public void setDetectionTime(Date detectionTime)
    {
        this.detectionTime = detectionTime;
    }

    public Date getDetectionTime()
    {
        return detectionTime;
    }
    public void setResult(String result)
    {
        this.result = result;
    }

    public String getResult()
    {
        return result;
    }
    public void setState(String state)
    {
        this.state = state;
    }

    public String getState()
    {
        return state;
    }
    public void setSxId(Long sxId)
    {
        this.sxId = sxId;
    }

    public Long getSxId()
    {
        return sxId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("path", getPath())
            .append("code", getCode())
            .append("tenantCode", getTenantCode())
            .append("detectionTime", getDetectionTime())
            .append("createTime", getCreateTime())
            .append("result", getResult())
            .append("state", getState())
            .append("sxId", getSxId())
            .toString();
    }
}
